/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.toools.gwt.wmc.client.disposer;

import com.google.gwt.user.client.rpc.AsyncCallback;
import java.util.Collection;
import org.toools.gwt.widget.client.bc.TooolsServiceAsync;
import org.toools.gwt.wmc.jpa.Disposer;

/**
 *
 * @author Manuel
 */
public interface DisposerServiceAsync extends TooolsServiceAsync{

    void getDisposerByID(Integer id, AsyncCallback<Disposer> callback);
    void getDisposers(AsyncCallback<Collection<Disposer>> callback);

    void create( Disposer d, AsyncCallback<Disposer> callback );
    void update( Disposer d, AsyncCallback<Boolean> callback );
    void delete( Disposer d, AsyncCallback<Boolean> callback );

}
